package com.yiqi.zhiyuan.feature.mine.contract;

import com.suozhang.framework.framework.BasePresenter;
import com.suozhang.framework.framework.BaseView;
import com.yiqi.zhiyuan.entity.vo.DiverCenterVO;

import io.reactivex.Observable;

/**
 * @ProjectName: ZhiYuan
 * @Description: java类作用描述
 * @Author: lijuwen
 * @CreateDate: 2019/3/14 10:45
 * @UpdateUser: 更新者
 * @UpdateDate: 2019/3/14 10:45
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public interface MineContract {

    interface Model {


        /**
         * 获取司机个人中心数据
         *
         * @param
         * @return
         */
        Observable<DiverCenterVO> doGetDiverCenter();


    }

    interface View extends BaseView {

        /**
         * 获取司机个人中心数据成功
         *
         * @param
         */
        void showDiverCenterSuccess(DiverCenterVO centerDTO);

        /**
         * 获取司机个人中心数据失败
         *
         * @param errorMsg
         */
        void showDiverCenterError(String errorMsg);

    }

    interface Presenter extends BasePresenter {
        /**
         * 获取司机数据
         *
         * @param
         */
        void doGetDiverCenter();
    }
}
